export const TABLE_INVERSION_COLUMNS = [
  {
    title: "序号",
    type: "index",
    key: "id",
    width: 65,
    align: "center"
  },
  {
    title: "时间",
    key: "time"
  },
  {
    title: "用户名称",
    key: "username"
  },
  {
    title: "设备名称",
    key: "devicename"
  },
  {
    title: "反演项",
    key: "inversionitem"
  },
  {
    title: "反演内容",
    key: "inversioncontent"
  }
].map((element) => {
  const { width } = element;
  if (!width) {
    return {
      ...element,
      minWidth: 200
    };
  }
  return element;
});

export const TABLE_COLUMNS = [
  {
    title: "序号",
    type: "index",
    key: "id",
    width: 65,
    align: "center"
  },
  {
    title: "操作类型",
    key: "operationtype"
  },
  {
    title: "控制账号",
    key: "operatingaccount"
  },
  {
    title: "用户名称",
    key: "username"
  },
  {
    title: "设备类型",
    key: "devicetype"
  },
  {
    title: "设备名称",
    key: "devicename"
  },
  {
    title: "控制开始时间",
    key: "starttime"
  },
  {
    title: "控制结束时间",
    key: "endtime"
  }
].map((element) => {
  const { width } = element;
  if (!width) {
    return {
      ...element,
      minWidth: 200
    };
  }
  return element;
});
